local sproto = require "sproto.sproto"
local core = require "sproto.core"
local print_r = require "sproto.print_r"

local socket = require "luasocket.socket"
local mime   = require "luasocket.mime"


local protoString = [[
.Person {
    name 0 : string
    id 1 : integer
    email 2 : string
}
]]

function main()
	local proto = sproto.parse(protoString)
	local def = proto:default "Person"
	print("default table for Person")
	print_r(def)
	print("--------------")

	print("Hello from " .. socket._VERSION .. " and " .. mime._VERSION .. "!")
end